package com.wll.demo.config;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

/**
 * @Description: 测试
 * @Author: Wanglulu
 * @Date: 2020/12/30 13:41
 * @Version 0.0.1
 */
@RestController
public class ViewController {

    @RequestMapping("/index")
    public ModelAndView index (){
        System.out.println(" index 。。。。。。。。");
        return new ModelAndView("index.html");
    }

    @RequestMapping("/index2")
    public ModelAndView main (){
        System.out.println(" index2 。。。。。。。。");
        return new ModelAndView("index2.html");
    }

}
